<template>
  <template v-if="type == 'btm'">
    <template v-for="item in cfg.bosslist">
      <n-popover trigger="hover" :keep-alive-on-hover="false">
        <template #trigger>
          <div>
            <n-tag
              @click="fun(item.name)"
              class="team_sstag"
              style="min-width: 30px"
              :class="{ teamsstag_on: arr?.includes(item['name']) }"
              >{{ item.bname }}</n-tag
            >
          </div>
        </template>
        <span>{{ item.name }}</span>
      </n-popover>
    </template>
  </template>
</template>

<script>
//2024/10/15 猫燐
//boss列表选择组件
import { cfg } from "@/cfg/cfg.js";

export default {
  mounted() {},
  props: {
    fun: Function,
    arr: {},
    type: {},
  },
  setup(props) {
    if (props.type == null) {
      props.type = "btm";
    }
    let data = reactive({});

    return {
      cfg,
      data,
    };
  },
};
</script>
